/* 
 * File:   Pixel.h
 * Author: mm021791
 *
 * Created on 26 de septiembre de 2012, 13:12
 */

#ifndef PIXEL_H
#define	PIXEL_H

#include <iostream>
#include <fstream>

using namespace std;

namespace TP{ namespace Grafica { 

    class Pixel {
        public:
            
            Pixel();
            
            Pixel(unsigned char pR, unsigned char pG, unsigned char pB);
            
            Pixel(const Pixel& orig);
            
            virtual ~Pixel();
            
            unsigned char getB() const;
            
            unsigned char getR() const;

            unsigned char getG() const;
            
            friend istream& operator>> (istream& stream, Pixel& pixel);
            
            friend ostream& operator<< (ostream& stream, const Pixel& pixel);
            
        private:
            unsigned char _R
                        , _G
                        , _B;
    };

}}

#endif	/* PIXEL_H */

